package cn.bocweb.spinning.view.activity;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.GridView;

import butterknife.Bind;
import butterknife.ButterKnife;
import cn.bocweb.spinning.R;
import cn.bocweb.spinning.view.adapter.CompanyListAdapter;
import cn.bocweb.spinning.view.common.BaseActivity;

public class CompanyListActivity extends BaseActivity {

    @Bind(R.id.gridview)
    GridView gridview;
    @Bind(R.id.toolbar)
    Toolbar toolbar;
    CompanyListAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_company_list);
        ButterKnife.bind(this);
        loadData();
    }

    private void loadData() {

//        adapter = new CompanyListAdapter(this);

        toolbar.setTitle("纺机企业");
        toolbar.setNavigationIcon(R.mipmap.btn_exit);
        toolbar.setTitleTextColor(getResources().getColor(R.color.white));

//        gridview.setAdapter(adapter);
    }
}
